using Galaxy.ModuleInspector.Events;
using Galaxy.ModuleInterface;

namespace Galaxy.ModuleInspector
{
    partial class GalaxyModuleInspector
    {
        public event OnModuleConnectedEventHandler OnModuleConnected;
        protected virtual void InvokeOnModuleConnected(IGalaxyModule Module)
        {
            if( OnModuleConnected != null )
                OnModuleConnected.Invoke(this, new OnModuleConnectedEventArgs(Module));
        }

        public event OnModuleConnectedEventHandler OnModuleDisconnected;
        protected virtual void InvokeOnModuleDisconnected(IGalaxyModule Module)
        {
            if( OnModuleDisconnected != null )
                OnModuleDisconnected.Invoke(this,
                                            new OnModuleConnectedEventArgs(Module));
        }
    }
}